//
//  CompanyViewController.m
//  HonlivApp
//
//  Created by admin on 2017/6/25.
//  Copyright © 2017年 honliv. All rights reserved.
//

#import "CompanyViewController.h"
#import "CompanyOfficeDetailView.h"

@interface CompanyViewController ()

@end

@implementation CompanyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"集团公司";
}
-(void)getDatasArray{
    [self getDataArray:^(GetDatas handler) {
        NSString *path = [[NSBundle mainBundle] pathForResource:@"Company" ofType:@"plist"];
        NSArray *dataArr = [NSArray arrayWithContentsOfFile:path];
        handler(dataArr);
    }];
}
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
    if (indexPath.section == 0) {
        switch (indexPath.row) {
            case 0:{
                [self pushViewControllerTo:[CompanyOfficeDetailView new]];
            }
                break;
                
            default:
                break;
        }
    }
}


@end
